#ifndef TIMED_H
#define TIMED_H

  #include "basic.h"
  #include "dataStructures.h"
  #include "messages.h"
  #include "network.h"

  // Creates thread to send listing message
  void threadListingMessage();
  
  // Sends a listing message every 240 seconds
  void * sendListMsg ();
  
  // Creates a Listing Message
  int createListingMessage(char * buffer, int totalFiles, char * files[]);

  // Creates Thread to check requests
  void checkRequests();
  
  // Checks requests every 5 seconds and purges old ones
  void * checkOutstandingRequests();
#endif
